package com.moioo.exam;

import java.util.Date;

/**
 * VFileId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class VFileId implements java.io.Serializable {

	// Fields

	private String id;
	private String name;
	private Integer classid;
	private String keyword;
	private String note;
	private Date createtime;
	private String createuser;
	private Integer state;
	private String expr1;

	// Constructors

	/** default constructor */
	public VFileId() {
	}

	/** minimal constructor */
	public VFileId(String id, String name, Integer classid, Integer state,
			String expr1) {
		this.id = id;
		this.name = name;
		this.classid = classid;
		this.state = state;
		this.expr1 = expr1;
	}

	/** full constructor */
	public VFileId(String id, String name, Integer classid, String keyword,
			String note, Date createtime, String createuser, Integer state,
			String expr1) {
		this.id = id;
		this.name = name;
		this.classid = classid;
		this.keyword = keyword;
		this.note = note;
		this.createtime = createtime;
		this.createuser = createuser;
		this.state = state;
		this.expr1 = expr1;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getClassid() {
		return this.classid;
	}

	public void setClassid(Integer classid) {
		this.classid = classid;
	}

	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreateuser() {
		return this.createuser;
	}

	public void setCreateuser(String createuser) {
		this.createuser = createuser;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getExpr1() {
		return this.expr1;
	}

	public void setExpr1(String expr1) {
		this.expr1 = expr1;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VFileId))
			return false;
		VFileId castOther = (VFileId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getClassid() == castOther.getClassid()) || (this
						.getClassid() != null
						&& castOther.getClassid() != null && this.getClassid()
						.equals(castOther.getClassid())))
				&& ((this.getKeyword() == castOther.getKeyword()) || (this
						.getKeyword() != null
						&& castOther.getKeyword() != null && this.getKeyword()
						.equals(castOther.getKeyword())))
				&& ((this.getNote() == castOther.getNote()) || (this.getNote() != null
						&& castOther.getNote() != null && this.getNote()
						.equals(castOther.getNote())))
				&& ((this.getCreatetime() == castOther.getCreatetime()) || (this
						.getCreatetime() != null
						&& castOther.getCreatetime() != null && this
						.getCreatetime().equals(castOther.getCreatetime())))
				&& ((this.getCreateuser() == castOther.getCreateuser()) || (this
						.getCreateuser() != null
						&& castOther.getCreateuser() != null && this
						.getCreateuser().equals(castOther.getCreateuser())))
				&& ((this.getState() == castOther.getState()) || (this
						.getState() != null
						&& castOther.getState() != null && this.getState()
						.equals(castOther.getState())))
				&& ((this.getExpr1() == castOther.getExpr1()) || (this
						.getExpr1() != null
						&& castOther.getExpr1() != null && this.getExpr1()
						.equals(castOther.getExpr1())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getClassid() == null ? 0 : this.getClassid().hashCode());
		result = 37 * result
				+ (getKeyword() == null ? 0 : this.getKeyword().hashCode());
		result = 37 * result
				+ (getNote() == null ? 0 : this.getNote().hashCode());
		result = 37
				* result
				+ (getCreatetime() == null ? 0 : this.getCreatetime()
						.hashCode());
		result = 37
				* result
				+ (getCreateuser() == null ? 0 : this.getCreateuser()
						.hashCode());
		result = 37 * result
				+ (getState() == null ? 0 : this.getState().hashCode());
		result = 37 * result
				+ (getExpr1() == null ? 0 : this.getExpr1().hashCode());
		return result;
	}

}